package com.elf.bluetoothtest.bluetooth;

import android.bluetooth.BluetoothDevice;

public interface IBlueToothConnection {

    /**
     * 获取设备信息
     */
    BluetoothDevice getDeviceInfo();

    /**
     * 连接
     */
    void connect();

    /**
     * 断开连接
     */
    void disconnect();

    /**
     * 释放
     */
    void release();

    void setBluetoothConnectionListener(BluetoothConnectionListener listener);

    public interface BluetoothConnectionListener {
        void onConnected(BluetoothDevice device);

        void onDisconnected(BluetoothDevice device);
    }
}
